import React, { Component } from 'react'


//所谓的逐层传递参数就是一层一层的往下传递


class First extends Component {
    render() {
        return (
            <div>First:{this.props.title}
                <Section con={this.props.title}></Section>
            </div>
        )
    }
}

const Section = (props) => {
    return (<>
        <div>
            Section:{props.con}
        </div>
    </>)
}


export default class App extends Component {
    render() {
        return (
            <div>
                <First title='卫龙'></First>
            </div>
        )
    }
}
